


// let includes = ([
//     "include/common.js",
// ]);


let {undefinedp} = require("../include/common.js");

function set(k,v){

    if( k.startsWith("_") ){
        os.debug("do not start with an underscore _ ");
        return false;
    }

    if( k == "__attr__" ){
        os.debug("the attr keyword cannot be used");
        return false;
    }

    thisObject.data[k] = v;
    return thisObject;
}

function get(k){
    if( undefinedp(thisObject.data) ){
        return undefined;
    }
    return thisObject.data[k];
}

//临时属性
function setTemp(k,v){
    thisObject.data["__dataTemp__"][k] = v;
}

function getTemp(k){
    return  thisObject.data["__dataTemp__"][k];
}

function parent(p){
    return thisObject.parents[p];
}




